package com.fourth_groups.shopping121store;

/**
 * 类名：Constants
 * 创建人：ZhangPing
 * 邮箱：zp045217@163.com
 * 创建时间：2016/10/11
 * 备注：JSON 常量
 */

public class Constants {
    //导航
    public static final String HOME_NAVIGATION = "http://api.121dian.cn/v3/card/cate?access_token=IdyMzCF5ePJqN4ZC0I3T";
    //分页
    public static final String HOME_COMMODITY = "http://api.121dian.cn/v3/card?offset=%s&limit=10&cate=%s&access_token=IdyMzCF5ePJqN4ZC0I3T";
    public static final String QQG = "http://m.121dian.com/new_activity/460?trace_data=%7B%22card_id%22%3A782%2C%22position%22%3A%226.6.1%22%7D";
    public static final String XP = "http://m.121dian.com/new_activity/366?trace_data=%7B%22card_id%22%3A782%2C%22position%22%3A%226.6.2%22%7D";
    public static final String DY = "http://m.121dian.com/activity/365?trace_data=%7B%22card_id%22%3A782%2C%22position%22%3A%226.6.3%22%7D";
    public static final String XWZG = "http://m.121dian.com/new_activity/447?trace_data=%7B%22card_id%22%3A782%2C%22position%22%3A%226.6.4%22%7D";
    public static final String YYG = "http://m.121dian.com/new_user/buy/1?trace_data=%7B%22position%22%3A%226.54.6%22%7D&trace_data=%7B%22card_id%22%3A782%2C%22position%22%3A%226.6.5%22%7D";
    public static final String PT = "http://m.121dian.com/groupbuy?trace_data=%7B%22card_id%22%3A753%2C%22position%22%3A%226.6.6%22%7D";
    public static final String JDZS = "http://m.121dian.com/jd/?trace_data=%7B%22card_id%22%3A753%2C%22position%22%3A%226.6.7%22%7D";
    public static final String YG = "http://m.121dian.com/new_activity/403?trace_data=%7B%22card_id%22%3A753%2C%22position%22%3A%226.6.8%22%7D";
    public static final String DDZ = "http://m.121dian.com/cpa?trace_data=%7B%22card_id%22%3A753%2C%22position%22%3A%226.6.9%22%7D";
    public static final String ZBBR = "http://m.121dian.com/new_activity/665/?trace_data=%7B%22card_id%22%3A753%2C%22position%22%3A%226.6.10%22%7D";
    /*******************************************************
     * --分类页面JSON_URL--*************************8
     *************************/
//   一、全部：
//         ① 左侧分组：
    public static final String ALL_GROUP_URL = "http://api.121dian.cn/v2.3/category_group";

    //     ② 右侧详细分类：
    public static final String ALL_CATEGORY_GROUP_URL = "http://api.121dian.cn/v2.3/category_group?limit=10&offset=0&type=0&cate_id=%d";
//    注：末尾”%d”:为左侧分组id

    //    ③ 货物分类详情(下同)
    public static final String ALL_CATEGORY_DEAIL_URL = "http://api.121dian.cn/v2/newpage/goodscate?cateid=%d&device_id=+&sort=1&access_token=JBM2h8Hb86L6cyIm76xo&type=1&offset=0&limit=20&";
//    注："cateid=%d"中的"%d":为上一界面详细分类中的id；limit=20 中的20可以每次加20实现下拉刷新

    //    ④ 货物详细信息（可分享，加入购物车，立即购买--->下同）
    public static final String ALL_GOODS_DETAIL_URL = "http://api.121dian.cn/v3/goods/%d";
//    注：”%d”:为上一界面货物分类详情中的id；

    //    二、京东：
//            ① 左侧分组：
    public static final String JD_GROUP_URL = "http://api.121dian.cn/v2.3/category_group?limit=10&offset=0&type=1";

    //    ② 右侧详细分类：
    public static final String JD_CATEGORY_GROUP_URL = "http://api.121dian.cn/v2.3/category_group?limit=10&offset=0&type=1&cate_id=%d";
//    注：末尾”%d”:为左侧分组id

/*********************************************--分类页面JSON_URL--***************************************************/

}
